package com.example.qxfw.ybzz.service.impl;

import com.example.qxfw.common.entity.zy.TourStations;
import com.example.qxfw.ybzz.mapper.TourStationsMapper;
import com.example.qxfw.ybzz.service.TourStationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TourStationsServiceImpl implements TourStationsService {

    @Autowired
    private TourStationsMapper tourStationsMapper;

    @Override
    public List<TourStations> getList() {
        List<TourStations> tourStations = tourStationsMapper.selectStation1();
        return tourStations;
    }

    @Override
    public List<TourStations> getList1() {
        return tourStationsMapper.selectStation2();
    }

    @Override
    public List<TourStations> getList2(String stationId) {
        return tourStationsMapper.selectStation3(stationId);
    }

    @Override
    public List<String> getStationName() {
        return tourStationsMapper.selectStationName();
    }
}
